/*
 * AALSystemItem.c
 *
 *  Created on: 20.05.2011
 *      Author: sili
 */

#include "AALSystemItem.h"
#include "SystemFactory.h"

static log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("at.sili.aalsystem.model.AALAction"));

AALSystemItem::AALSystemItem(int _rootWidth, int _rootHeight, Controller * _controller)
			  :AALItem(0, _controller){
	AAL_DEBUG(logger,"Constructor globalId:%d", AALItem::globalId);
	setName("system");
	//setType("system");
	setTemplateName("system");
	this->area.left = 0;
	this->area.top = 0;
	this->area.width = _rootWidth;
	this->area.height = _rootHeight;
	this->relativePositions.left = 0.0;
	this->relativePositions.top = 0.0;
	this->relativePositions.width = 100.0;
	this->relativePositions.height = 100.0;
	this->type.clear();
	this->type.append("system");
}

AALSystemItem::~AALSystemItem() {
	AAL_DEBUG(logger,"Destructor globalId:%d", AALItem::globalId);
}
